import {
  mapState,
  mapMutations
} from 'vuex'

import smp from '@/store/store.js'

export default {
  store: smp,
  computed:{
    ...mapState({
      Authorization: state => state.User.Authorization,
      Ip: state => state.User.Ip,
      CityName: state => state.User.CityName,
      isLogin: state => state.User.isLogin,
      UserInfo: state => state.UserInfo,
      ArticleId:state => state.ArticleId
    })
  },

  methods: {
    ...mapMutations({
      LoginChangeToken: 'LoginChangeToken',
      AddUserCenterInfo:'AddUserCenterInfo',
    }),
  }
}
